Skip to content

Conversation

@MarkTripod-Duo
Copy link
Contributor

add policy_key parameter
add deprecation warning for visual_style parameter

Tested-by: manual testing

Description

Added a deprecation warning to the 'visual_style' argument processing. Added new parameter for 'policy_key' to support setting of application level custom policy value.

Motivation and Context

Changes are made to bring client closer to available Admin API endpoint functionality.

How Has This Been Tested?

Tested manually on a local virtual environment.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

add policy_key parameter
add deprecation warning for visual_style parameter

Tested-by: manual testing
@MarkTripod-Duo MarkTripod-Duo changed the title chore: update_integration() function parameter clarification chore: update_integration() function parameter clarification. Closes #280 Nov 8, 2024
ip_whitelist=None,
ip_whitelist_enroll_policy=None,
groups_allowed=None,
groups_allowed=None, policy_key=None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we split this into two lines, to be consistent with the surroundings?

if name is not None:
params['name'] = name
if visual_style is not None:
warnings.warn("The 'visual_style' argument is deprecated. May be removed in a future release.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we do this other places, for deprecated parameters?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. In get_authentication_log() and get_group()

Updated parameter definition indentation to match previous iteration for consistency.
Copy link
Contributor Author

@MarkTripod-Duo MarkTripod-Duo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed parameter indentation for update_integration() method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants